package com.bdth.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * @author: 徐斌
 * @Date: 2018-07-06 11:56
 */
public class TerminalCommandNew {

	public static String STATUS_NEW = "New";
	public static String STATUS_PROCESSING = "Processing";
	public static String STATUS_INVALID = "Invalid";
	public static String STATUS_SUCCESS = "Success";
	//上传成功
	public static String STATUS_UPLOADED = "Uploaded";
	public static String STATUS_FAILED = "Failed";
	public static String STATUS_OFFLINE = "Offline";
	public static String STATUS_NOT_SUPPORT = "NotSupport";

	//owner属性值:政府平台，terminal,用户登录名 三种属性
	public static String FROM_GOV = "政府平台";
	public static String FROM_TERMINAL = "terminal";
	public static String FROM_PLATFORM = "platform";

	@JsonProperty("VehicleId")
	public int VehicleId;

	@JsonProperty("SimNo")
	public String SimNo;

	@JsonProperty("PlateNo")
	public String PlateNo;

	@JsonProperty("CmdType")
	public int CmdType;

	@JsonProperty("Cmd")
	public String Cmd;

	@JsonProperty("CmdData")
	public String CmdData;

	@JsonProperty("Status")
	public String Status;

	@JsonProperty("SN")
	public int SN;

	@JsonProperty("UserId")
	public String UserId;

	@JsonProperty("CreateDate")
	public Date CreateDate;

	@JsonProperty("UpdateDate")
	public Date UpdateDate;

	@JsonProperty("Owner")
	public String Owner;

	@JsonProperty("Remark")
	public String Remark;

	@JsonProperty("VehicleId")
	public int getVehicleId() {
		return VehicleId;
	}

	public void setVehicleId(int vehicleId) {
		VehicleId = vehicleId;
	}

	@JsonProperty("SimNo")
	public String getSimNo() {
		return SimNo;
	}

	public void setSimNo(String simNo) {
		SimNo = simNo;
	}

	@JsonProperty("PlateNo")
	public String getPlateNo() {
		return PlateNo;
	}

	public void setPlateNo(String plateNo) {
		PlateNo = plateNo;
	}

	@JsonProperty("CmdType")
	public int getCmdType() {
		return CmdType;
	}

	public void setCmdType(int cmdType) {
		CmdType = cmdType;
	}

	@JsonProperty("Cmd")
	public String getCmd() {
		return Cmd;
	}

	public void setCmd(String cmd) {
		Cmd = cmd;
	}

	@JsonProperty("CmdData")
	public String getCmdData() {
		return CmdData;
	}

	public void setCmdData(String cmdData) {
		CmdData = cmdData;
	}

	@JsonProperty("Status")
	public String getStatus() {
		return Status;
	}

	public void setStatus(String status) {
		Status = status;
	}

	@JsonProperty("SN")
	public int getSN() {
		return SN;
	}

	public void setSN(int SN) {
		this.SN = SN;
	}

	@JsonProperty("UserId")
	public String getUserId() {
		return UserId;
	}

	public void setUserId(String userId) {
		UserId = userId;
	}

	@JsonProperty("CreateDate")
	public Date getCreateDate() {
		return CreateDate;
	}

	public void setCreateDate(Date createDate) {
		CreateDate = createDate;
	}

	@JsonProperty("UpdateDate")
	public Date getUpdateDate() {
		return UpdateDate;
	}

	public void setUpdateDate(Date updateDate) {
		UpdateDate = updateDate;
	}

	@JsonProperty("Owner")
	public String getOwner() {
		return Owner;
	}

	public void setOwner(String owner) {
		Owner = owner;
	}

	@JsonProperty("Remark")
	public String getRemark() {
		return Remark;
	}

	public void setRemark(String remark) {
		Remark = remark;
	}

	public TerminalCommandNew() {
		this.CreateDate = new Date();
		this.UpdateDate = new Date();
		this.Status = STATUS_NEW;
	}


}
